<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <%@include file="/static/common/common.jsp"%>
  <script src="/static/js/dictionaries/dictionaries.js"></script>
  <script src="/static/js/dictionaries/dictionariesItem.js"></script>
</head>
<body class="easyui-layout">


  <%--数据字典主目录--%>
  <div data-options="region:'west',title:'数据字典',split:true" style="width:670px;">
    <table id="dictionaries_datagrid"></table>

    <%--工具栏--%>
    <div id="dictionaries_toolbar">
      <a class="easyui-linkbutton" iconCls="icon-add2 iconfont" plain="true" data-cmd="add">新增</a>
      <a class="easyui-linkbutton" iconCls="icon-bianji iconfont" plain="true" data-cmd="edit">编辑</a>
      <a class="easyui-linkbutton" iconCls="iconfont icon-shanchu" plain="true" data-cmd="del">删除</a>
    </div>

    <%--编辑界面按钮工具栏--%>
    <div id="form_btns">
      <a class="easyui-linkbutton" iconCls="iconfont icon-dui" plain="true" data-cmd="save">保存</a>
      <a class="easyui-linkbutton" iconCls="iconfont icon-jujue" plain="true" data-cmd="cancel">取消</a>
    </div>

    <%--编辑框界面--%>
    <div id="dictionaries_dialog">
      <form method="post" id="dictionaries_form">
        <input type="hidden" name="id" id="dictionariesId">
        <table align="center" fit="true">
          <tbody>
          <tr>
            <td>目录编号:</td>
            <td><input name="sn" class="easyui-textbox"/></td>
          </tr>
          <tr>
            <td>目录名称:</td>
            <td><input name="name" class="easyui-textbox" /></td>
          </tr>
          <tr>
            <td>目录简介:</td>
            <td><input name="info" class="easyui-textbox"/></td>
          </tr>

          </tbody>
        </table>
      </form>
    </div>
  </div>



  <%--数据字典明细--%>
  <div data-options="region:'center',title:'字典目录明细'" style="padding:5px;background:#eee;">

    <table id="dictionariesItem_datagrid"></table>

    <%--工具栏--%>
    <div id="dictionariesItem_toolbar">
      <a class="easyui-linkbutton" iconCls="icon-add2 iconfont" plain="true" data-item="add_item">新增</a>
      <a class="easyui-linkbutton" iconCls="icon-bianji iconfont" plain="true" data-item="edit_item">编辑</a>
      <a class="easyui-linkbutton" iconCls="iconfont icon-shanchu" plain="true" data-item="del_item">删除</a>
    </div>

    <%--编辑界面按钮工具栏--%>
    <div id="form_btns">
      <a class="easyui-linkbutton" iconCls="iconfont icon-dui" plain="true" data-item="save_item">保存</a>
      <a class="easyui-linkbutton" iconCls="iconfont icon-jujue" plain="true" data-item="cancel_item">取消</a>
    </div>

    <%--编辑框界面--%>
    <div id="dictionariesItem_dialog">
      <form method="post" id="dictionariesItem_form">
        <input type="hidden" name="id" id="dictionariesItemId">
        <table align="center" fit="true">
          <tbody>
          <tr>
            <td>明细名称:</td>
            <td><input name="name" class="easyui-textbox"/></td>
          </tr>
          <tr>
            <td>明细简介:</td>
            <td><input name="info" class="easyui-textbox" /></td>
          </tr>

          <tr>
            <td>所属目录:</td>
            <td><input  name="dictionariesId" id="catalogues" class="easyui-combobox"
                       data-options="valueField: 'id',
                       textField: 'name',
                       url:'/dictionariesItem/combobox.do',
                       method:'get'"/></td>
          </tr>
          </tbody>
        </table>
      </form>
    </div>



  </div>
</body>

</html>
